//
//  prictureTableViewCell.m
//  iNews
//
//  Created by lanou3g on 14-12-12.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "prictureTableViewCell.h"

@implementation prictureTableViewCell
-(void)dealloc{

    [_imageve release];
    [_tLabel release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

-(void)addviews{
    
    //初始化一个iamge
    self.imageve = [[[UIImageView alloc] initWithFrame:CGRectMake(20, 0, 280, 150)] autorelease];
    [self.contentView addSubview:self.imageve];
    
    //初始化一个label
    self.tLabel = [[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMinX(self.imageve.frame) , CGRectGetMaxY(self.imageve.frame),CGRectGetWidth(self.imageve.frame),20)] autorelease];
    
    self.tLabel.font = [UIFont systemFontOfSize:13];
    self.tLabel.numberOfLines = 0;
    [self.contentView addSubview:self.tLabel];
    
}




- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
